package zzxkj.blog.common.lang;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 存放公共常量
 * @author zzxkj
 */
@Data
@Component
public class Consts {

    public static final Long IM_DEFAULT_USER_ID = 999L;

    public final static Long IM_GROUP_ID = 999L;

    //群聊通道名称
    public final static String IM_GROUP_NAME = "e-group-study";

    //消息类型
    public final static String IM_MESS_TYPE_PING = "pingMessage";
    public final static String IM_MESS_TYPE_CHAT = "chatMessage";

    public static final String IM_ONLINE_MEMBERS_KEY = "online_members_key";

    //验证码key，存在session中
    public static final String CAPTCHA_SESSION_KEY="CAPTCHA_SESSION_KEY";


    //----------********redis key********-----------//
    //群历史聊天消息
    public static final String IM_GROUP_HISTROY_MSG_KEY = "chatRoom:group_histroy_msg_key";
    //天浏览量前缀
    public static final String DAY_VIEW_DATA_KEY_PREFIX = "day:view:";
    //排行榜
    public static final String CHART_VIEW_DATA_KEY = "chart:view";



}
